/**
 * 
 */
package com.suneee.enterprise.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import com.suneee.orm.annotation.Column;
import com.suneee.orm.annotation.Entity;
import com.suneee.orm.annotation.Table;
import com.suneee.orm.annotation.Transient;

/**
 * @author liuxuehong
 *
 */
@Entity
@Table(name = "t_enterprise")
@SuppressWarnings("serial")
public class Enterprise implements Serializable {

	// 企业类型
	public final static String CLIENT = "client";
	public final static String SYSTEM = "system";
	// 审核状态
	public final static String FAILURE = "failure";
	public final static String SUCCESS = "success";
	public final static String NO = "no";
	
	// 企业编码
	@Column(name = "enterprise_code", nullable = false)
	private String enterpriseCode;

	// 简称
	@Column(name = "short_name", nullable = false)
	private String shortName;

	// 名称
	@Column(name = "name", nullable = false)
	private String name;

	// 营业执照
	@Column(name = "business_license", nullable = false)
	private String businessLicense;

	// LOGO
	@Column(name = "logo", nullable = false)
	private String logo;

	// 地址
	@Column(name = "address", nullable = false)
	private String address;

	// 联系人
	@Column(name = "contact", nullable = false)
	private String contact;

	// 联系电话
	@Column(name = "telephone", nullable = false)
	private String telephone;

	// 描述
	@Column(name = "remark", nullable = false)
	private String remark;

	// 公司法人代表
	@Column(name = "legal_person", nullable = false)
	private String legalPerson;
	
	// 企业邮箱
	@Column(name = "enterprise_mail", nullable = false)
	private String enterpriseMail;

	// 是否可用 true表示"可用" false表示"不可用"
	@Column(name = "enabled", nullable = false)
	private boolean enabled;

	// 企业类型(客户:client  系统:system)
	@Column(name = "type", nullable = false)
	private String type;

	// 创建时间
	@Column(name = "create_time", nullable = false)
	private Timestamp createTime;

	// 修改时间
	@Column(name = "last_update_time", nullable = false)
	private Timestamp lastUpdateTime;

	// 审核状态(成功:success 未通过:failure 未审核:no)
	@Column(name = "review_status", nullable = false)
	private String reviewStatus;

	// 审核描述
	@Column(name = "review_desctiption", nullable = false)
	private String reviewDesctiption;
	
	@Transient
	private String companyCode; //物流公司编码
	
	@Column(name = "out_mall_code")
	private String outMallCode;//在外部商城的企业编码
	
	public String getEnterpriseCode() {
		return enterpriseCode;
	}

	public void setEnterpriseCode(String enterpriseCode) {
		this.enterpriseCode = enterpriseCode;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Timestamp getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Timestamp lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public String getReviewStatus() {
		return reviewStatus;
	}

	public void setReviewStatus(String reviewStatus) {
		this.reviewStatus = reviewStatus;
	}

	public String getReviewDesctiption() {
		return reviewDesctiption;
	}

	public void setReviewDesctiption(String reviewDesctiption) {
		this.reviewDesctiption = reviewDesctiption;
	}

	public String getBusinessLicense() {
		return businessLicense;
	}

	public void setBusinessLicense(String businessLicense) {
		this.businessLicense = businessLicense;
	}

	public String getLegalPerson() {
		return legalPerson;
	}

	public void setLegalPerson(String legalPerson) {
		this.legalPerson = legalPerson;
	}

	public String getEnterpriseMail() {
		return enterpriseMail;
	}

	public void setEnterpriseMail(String enterpriseMail) {
		this.enterpriseMail = enterpriseMail;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public String getOutMallCode() {
		return outMallCode;
	}

	public void setOutMallCode(String outMallCode) {
		this.outMallCode = outMallCode;
	}
	
}
